const {UserDeviceModel} = require('../../models/models');


function removeDevice(json){

    return new Promise((res) =>{
        UserDeviceModel.deleteMany({json})
        .then(docs =>res({status:0,data:docs}))
        .catch(err =>res({status:1}))
    })


}



module.exports = removeDevice;